package com.baidu.mobstat.a;

import android.util.Log;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.text.SimpleDateFormat;

public final class b
{
  private static final SimpleDateFormat a = new SimpleDateFormat("MM-dd HH:mm:ss.SSS");

  static
  {
    a();
  }

  public static int a(String paramString)
  {
    return a("Mobads SDK", paramString);
  }

  public static int a(String paramString1, String paramString2)
  {
    if (!a(3))
      return -1;
    b(paramString1, paramString2);
    return Log.d(paramString1, paramString2);
  }

  public static int a(String paramString, Throwable paramThrowable)
  {
    if (!a(3))
      return -1;
    a("Mobads SDK", paramString, paramThrowable);
    return Log.d("Mobads SDK", paramString, paramThrowable);
  }

  public static int a(Throwable paramThrowable)
  {
    return a("", paramThrowable);
  }

  public static int a(Object[] paramArrayOfObject)
  {
    if (!a(3))
      return -1;
    return a(c(paramArrayOfObject));
  }

  public static void a()
  {
    a.a("_b_sdk.log");
  }

  private static void a(String paramString1, String paramString2, Throwable paramThrowable)
  {
    StringWriter localStringWriter = new StringWriter();
    PrintWriter localPrintWriter = new PrintWriter(localStringWriter);
    paramThrowable.printStackTrace(localPrintWriter);
    b(paramString1, paramString2 + "\n" + localStringWriter.toString());
    localPrintWriter.close();
    try
    {
      localStringWriter.close();
      return;
    }
    catch (IOException localIOException)
    {
      Log.w("Log.debug", "", localIOException);
    }
  }

  public static boolean a(int paramInt)
  {
    return a("Mobads SDK", paramInt);
  }

  public static boolean a(String paramString, int paramInt)
  {
    return paramInt >= 4;
  }

  public static int b(String paramString)
  {
    if (!a(6))
      return -1;
    b("Mobads SDK", paramString);
    return Log.e("Mobads SDK", paramString);
  }

  public static int b(Object[] paramArrayOfObject)
  {
    if (!a(6))
      return -1;
    return b(c(paramArrayOfObject));
  }

  private static void b(String paramString1, String paramString2)
  {
    monitorenter;
    monitorexit;
  }

  private static String c(Object[] paramArrayOfObject)
  {
    StringBuilder localStringBuilder = new StringBuilder();
    int i = paramArrayOfObject.length;
    for (int j = 0; j < i; ++j)
      localStringBuilder.append(paramArrayOfObject[j]).append(' ');
    return localStringBuilder.toString();
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     com.baidu.mobstat.a.b
 * JD-Core Version:    0.5.4
 */